package cn.xinfei.xdecision.common.model.component.decisiontable;

import cn.xinfei.xdecision.common.model.component.IgnoredParamCheck;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * (DecisionTablesResult)实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName(value = "t_decision_tables_result")
public class DecisionTablesResult implements Serializable {
    @IgnoredParamCheck
    private static final long serialVersionUID = -37103405087760345L;

    @IgnoredParamCheck
    @TableId(type = IdType.AUTO)
    private Long id;//决策表结果集id

    /**
     * 决策表版本id,对应t_decision_tables_version.id
     */
    private Long versionId;//决策表id

    @IgnoredParamCheck
    @TableField(exist = false)
    private Integer rows;//行数
    private Integer hang;//行数

    private Integer columns;//列数

    private String resultValue;//结果集二维数组

    @IgnoredParamCheck
    private Date createdTime;//创建时间

    @IgnoredParamCheck
    private Date updatedTime;//修改时间

    public void setRows(Integer rows) {
        this.hang = rows;
    }

    public Integer getRows() {
        return hang;
    }
}
